package com.vfmall.service;

import com.vfmall.dto.DishDTO;
import com.vfmall.dto.DishPageQueryDTO;
import com.vfmall.entity.Dish;
import com.vfmall.result.PageResult;
import com.vfmall.vo.DishVO;

import java.util.List;

public interface DishService {
    public void saveWithFlavor(DishDTO dishDTO);
    public PageResult pageQuery(DishPageQueryDTO dishPageQueryDTO);
    public void deleteBatch(List<Long> ids);
    public DishVO getByIdWithFlavor(Long id);
    //根据id修改菜品基本信息和对应的口味信息
    void updateWithFlavor(DishDTO dishDTO);
    public List<Dish> list(Dish dish);
    public List<Dish> list(Long categoryId);
    public List<DishVO> listWithFlavor(Dish dish);

    void startOrStop(Integer status, Long id);
}
